package com.weayer.controller;

import com.weayer.dto.ResponseResult;
import com.weayer.service.CityDriverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: Service服务 - 司机 - 城市司机管理Controller
 * @author: Weayer
 **/
@RestController
@RequestMapping("/city-driver")
public class CityDriverController {
    @Autowired
    CityDriverService cityDriverService;

    @GetMapping("/is-available-driver")
    public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode){
        return cityDriverService.isAvailableDriver(cityCode);
    }
}
